package com.shujia.java.day7;

public class DemoStatic1 {
    static {
        System.out.println("AAAAA");
        i = 20;
    }
    /**
     * show 0
     * print 0
     */

   // static{
//		i=0;
//	}
        /*
         * public static int i=0;
         *
         * ��ͬ��
         * public static int i;  1
         * static{  3
         * 	i=0
         * }
         *
         *
         *
         *
         */

    public static int i = 0;
    public void show() {
        System.out.println("show" + i);
    }
    public static void print() {
        System.out.println("print" + i);
    }
    public static void main(String[] args) {
        System.out.println("main");
        DemoStatic1 demoStatic1 = new DemoStatic1();
        demoStatic1.show();
        print();
    }
}
